<% if @cultural_heritage_styles.size > 0 %>

<h1>Listado de Estilos</h1>

<table class="paginated_table sorted_table">
  <thead>
  <tr>
    <th>Nombre</th>
    <th>Descripción</th>
    <th>Acciones</th>
  </tr>
  </thead>
  <tbody>
<% @cultural_heritage_styles.each do |cultural_heritage_style| %>
  <tr>
    <td><%= cultural_heritage_style.name %></td>
    <td><%= cultural_heritage_style.description %></td>
    <td>
      <%= link_to image_tag("navi/search-16-ns.png", :border => 0,:title=>"Mostrar"), cultural_heritage_style%>
      <% if (user_signed_in? && ([2].include?(current_user.role))) %>
    <%= link_to image_tag("navi/pencil-16-ns.png", :border => 0,:title=>"Editar"), edit_cultural_heritage_style_path(cultural_heritage_style) %>
    <%= link_to image_tag("navi/cross-16-ns.png", :border => 0,:title=>"Eliminar"), cultural_heritage_style, :confirm => 'Esta Seguro?', :method => :delete %>
      <%end%>



    </td>
  </tr>
<% end %>
  </tbody>
</table>
<% else %>
  <p>Ningún Estilo Encontrado</p>
<% end %>
<br />
<% if (user_signed_in? && ([2].include?(current_user.role))) %>
<%= link_to 'Nuevo Estilo', new_cultural_heritage_style_path %>
<%end%>
